package com.hmall.api.client;

import com.hmall.api.dto.ItemDTO;
import com.hmall.common.domain.PageDTO;
import com.hmall.common.domain.PageQuery;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;

@FeignClient(value = "search-service")
public interface SearchClient {
    /**
     * 分页查询商品
     * @param query
     * @return
     */
    PageDTO<ItemDTO> queryItemByPage(PageQuery query);


}
